package com.hailiang.study.javase.java.other.staticblock;

/**
 * @author hailiang.jiang
 * @date 2021年07月02 16:23
 */
public class ClassDemo {
    private static final String CLASS_FLAG = "《ClassDemo》";
    static {
        System.out.println(CLASS_FLAG + "====class demo====");
    }

    public static void init() {
        System.out.println(CLASS_FLAG + "ClassDemo init method");
    }


    public void add(User user) {
        System.out.println(CLASS_FLAG + "调用 ClassDemo.user 方法");
    }
}
